﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Eleanor.Website.Utility;
using Eleanor.BLL;

namespace Eleanor.Website.Controllers
{
    public class OpenController : EleanorControllerBase
    {
        //
        // GET: /Open/
        PaintingBLL paintingBLL = new PaintingBLL();
        public ActionResult Search()
        {
            Response.ContentType = "text/xml";
            return View();
        }

        public ActionResult SiteMap()
        {
            Response.ContentType = "text/xml";
            ViewBag.Paintings = paintingBLL.GetAll();
            return View();
        }

    }
}
